package sp.service;

import java.util.Set;

import sp.pojo.User;

public interface UserService {

	/**
	 * 新增用户
	 * @param user
	 * @return
	 * @throws Exception
	 */
	public boolean txsaveUser(User user) throws Exception;
	
	
	/**
	 * 激活邮箱 
	 * @param email
	 * @param activeCode
	 * @return
	 */
	public boolean txactiveEmail(String email) throws Exception;

	
	public User findUserByName(String typeCode);
	
	public Set<String> findRoles(String typeCode) throws Exception;
	
	public Set<String> findPermissions(String typeCode) throws Exception;

	public boolean modifyUser(User user) throws Exception;
	
	public boolean deleteUser(Integer uid) throws Exception;
	
}
